package matlab;

public class DoubleVariable extends AbstractVariable {

	double value;
	
	public DoubleVariable(String name, double value) {
		super(name);
		this.value = value;
	}
	
	@Override
	public ArrayType getType() {
		return ArrayType.DOUBLE;
	}
	
	@Override
	public double[] getDoubleArray() {
		return new double[] { value };
	}

	@Override
	public boolean isDouble() {
		return true;
	}
}
